package com.wwzz.controller;

import com.wwzz.model.User;
import com.wwzz.service.UserService;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController {
    @Resource
    private UserService userService;

    public User findUserById(Integer id) {
        if (id == null){
            return new User();
        }
        return userService.findUserById(id);
    }
}
